<?php

namespace app\common\model;

use think\Model;

/**
 * 接收消息类型模型
 */
class Type extends Model
{
    public function getList(){

        $list = \think\Db::name('type')->field('id,name')->select();
        $data = [];
        foreach($list as $k => $v){
            $data[$v['id']] = $v['name'];
        }

        return $data;
    }

}